<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:clarity="http://clarity/facelets/debug"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui">


<h:head>
	<title>IGNORED</title>
</h:head>

<h:body>
	<ui:composition>
		<h:outputScript library="javax.faces" name="jsf.js" target="body" />

		<h:form id="viewMenus">
			<div class="post">
				<h2 class="title">#{menuManager.selectedMenu.name}
				</h2>
				<p class="meta">&nbsp;</p>
				<div class="entry">

					<p:dataTable id="menusTable" var="menuItem"
						value="#{menuManager.selectedMenu.menuItems}" rowKey="#{menuItem.name}" paginator="true"
						rowClasses="odd, even" rows="50"
						rowsPerPageTemplate="50, 100, 200"
						paginatorTemplate=" {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown} "
						sortBy="#{menuItem.category}"
						selectionMode="single">
						

						<p:column sortBy="#{menuItem.category}" filterBy="#{menuItem.category}"
							resizable="false">
							<f:facet name="header">
								<h:outputText value="Category Name" />
							</f:facet>
							<h:outputText value="#{menuItem.category}" />
						</p:column>
						
						<p:column sortBy="#{menuItem.name}" filterBy="#{menuItem.name}"
							resizable="false">
							<f:facet name="header">
								<h:outputText value="Item Name" />
							</f:facet>
							<h:outputText value="#{menuItem.name}" />
						</p:column>
						
						<p:column sortBy="#{menuItem.price}" filterBy="#{menuItem.price}"
							resizable="false">
							<f:facet name="header">
								<h:outputText value="Item Price" />
							</f:facet>
							<h:outputText value="#{menuItem.price}" />
						</p:column>
						
					</p:dataTable>

			

				</div>
			</div>
		</h:form>

	</ui:composition>
</h:body>
</html>